from django.db import models

# Create your models here.
class JosSections(models.Model):
    id = models.IntegerField(primary_key=True)
    title = models.CharField(u'Section Title', max_length=255)
    name = models.CharField(max_length=255)
    alias = models.CharField(max_length=255)
    image = models.TextField()
    scope = models.CharField(max_length=50)
    image_position = models.CharField(max_length=30)
    description = models.TextField()
    published = models.IntegerField()
    checked_out = models.IntegerField()
    checked_out_time = models.DateTimeField()
    ordering = models.IntegerField()
    access = models.IntegerField()
    count = models.IntegerField()
    params = models.TextField()
    
    def __unicode__(self):
        return self.title    
    
    class Meta:
        db_table = u'jos_sections'
        verbose_name = u'Section'
        verbose_name_plural = u'Sections'        
        app_label = u'Content'

